import os.path

def processDirectory ( args, dirname, filenames ):
    print (dirname)
    for filename in filenames:
        if(filename.endswith('.cs')):
             print (filename)
 
walk(r'I:\MyGit\CSMStation\DataCommon', processDirectory, None)